package com.atguigu.algorithm;

import java.util.Scanner;

public class Test {
    public static void main(String[] args) {
        Scanner scanner=new Scanner(System.in);
        String string1=scanner.nextLine();
        String string2=scanner.nextLine();
        if(string2.contains(string1)){
            System.out.println("yes");
        }else{
            System.out.println("no");
        }
    }
}
